package pl.s7n.paint.commands;

import java.awt.geom.Line2D;

import pl.s7n.paint.utils.UpdatableShape;

public class PencilStrokeCmd extends AbstractDrawStrokeCmd implements UpdatableShape {

  @Override
  public void updateShape() {
    if (shape.getBounds().isEmpty()) {
      shape = new Line2D.Float(start, start);
    }
  }

  @Override
  public String toString() {
    return "pencil";
  }

}
